home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Aktuell
/
Amiga Aktuell.iso
/
amiga-aktuell
/
net tools
/
fido net
/
tagmaker
/
tagmaker.rexx
next >
Wrap
OS/2 REXX Batch file
|
1996-09-05
|
1KB
|
50 lines
/* TagMaker V1.0 13th June 1995 By Anthony Brice */
/* Usage: Tagmaker.rexx <InputFile> <OutputFile> */
/* Used to convert a text file into a list of taglines in spot format */
/* Comments: anthony@backyard.demon.co.uk */
Options Results
Ver='1.0'
Intro= 'Tagline file created by TagMaker 1.0 by Anthony Brice'
Insert = '%%'
Say ; Say 'TagMaker 'Ver' By Anthony Brice.' ; Say
Parse Arg InFile OutFile
If Infile = '' then Signal Usage
If OutFile = '' then Signal Usage
If ~Exists(InFile) then Do
Say 'Error - Input file not found!' ; Say
Exit 10
End
Call Open(Plop,OutFile,"W")
Call WriteLN(Plop,Intro)
Call WriteLN(Plop,Insert)
Say 'TagFile initialised .. Working....' ; Say
Call Open(Plap,InFile,"R")
Do Until EOF(Plap)
Temp=ReadLN(Plap)
If Temp~='' then Do
WriteLN(Plop,Temp)
WriteLN(Plop,Insert)
End
End
Call Close(Plap)
Call Close(Plop)
Say 'All Done. 'InFile' has the taglines converted!' ; Say
Exit 0
Usage:
Say 'Usage: rx TagMaker.rexx <File to convert> <Output file>' ; Say
Exit 0